package com.wnxy.carl.api;

import com.wnxy.carl.dto.BusinessFlowDTO;
import com.wnxy.carl.param.IncreaseBusinessFlowParam;
import com.wnxy.carl.param.IncreaseShopingParam;
import com.wnxy.carl.param.PageParam;
import com.wnxy.carl.response.EPage;
import com.wnxy.carl.response.Result;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "carlOrderServe",contextId = "BusinessFlowApi",path = "Flow")
@Api(tags = "业务流程管理", description = "提供用户相关的 Order API")
public interface BusinessFlowApi {
    @PostMapping("seeBusinessFlow")//查看业务流程 List<BusinessFlowDTO>
    public Result<? extends EPage<BusinessFlowDTO>> seeBusinessFlow(@RequestBody PageParam<Integer> pageParam);
    @GetMapping("amendBusinessFlow")//修改业务流程 BusinessFlowDTO
    public Result<BusinessFlowDTO> amendBusinessFlow(@RequestParam("flowId") Integer flowId,@RequestParam("flowStatus") Integer flowStatus);
    @DeleteMapping("cancelBusinessFlow")//删除业务流程 Boolean
    public Result cancelBusinessFlow(@RequestParam("flowId") Integer flowId);
    @PostMapping("increaseBusinessFlow")//添加业务流程 BusinessFlowDTO
    public Result<BusinessFlowDTO> increaseBusinessFlow(@RequestBody IncreaseBusinessFlowParam businessFlowParam);
}
